package org.freemarker.web.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;

@Controller
public class ContactHomeController extends HttpServlet {

	private static final long serialVersionUID = -7807099068182746651L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.getRequestDispatcher("home.ftl").forward(req, resp);
		//req.getRequestDispatcher("layout/menu.ftl").forward(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		
		
		
		req.getRequestDispatcher("views/contact/list.ftl").forward(req, resp);
		req.getRequestDispatcher("views/car/listCars.ftl").forward(req, resp);
		
	}

}